<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Widget.aspx.cs" Inherits="Widget" Title="My Widget" %>
<%@ Import Namespace="Friendster.Service" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <fs:FriendsterApplication runat="server" ID="fsApplication" ApplicationKey="0c868a9a9f2d332000cd09e1ed602ddc"
    ApplicationName="Creating .NET Client" Secret="7234cc4ad7689d0f8031b2023e252a3d" CallbackUrl="http://localhost:1653/StepByStep/" />
<%
    Response.Write("<div style=\"padding-left:20px\"><strong>Following is your widget information</strong><br /><br />");
    Widget widget = fsApplication.Service.Widget.GetWidget("752913394");
    if (widget!=null)
    {
        Response.Write("<strong>Instance ID: </strong>" + widget.InstanceID);
        Response.Write("<br /><strong>Title: </strong>" + widget.Title);
        Response.Write("<br /><strong>Content: </strong>" + widget.Content);
        Response.Write("<br /><strong>Last Updated On: </strong>" + widget.LastUpdatedDate.Date);
        Response.Write("<br /><strong>Created On: </strong>" + widget.CreatedDate.Date);
    }
    else
        Response.Write("You do not have any content in profile for this application.");
    
    Response.Write("</div>");
%>
</asp:Content>

